﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ManageBrandDivCat.aspx.vb" Inherits="Arwani.Backend_ManageBrandDivCat" %>
<%@ Register src="Menu.ascx" tagname="Menu" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title> Arwani Backend Panel</title>
    <script src="../js/jquery.min.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function postSortOrder(sortOrder, tableName, whereID, valueID) {
            $('#div_result').html('<input  type="image" src="../images/loading.gif" />');
            $.post("UpdateSortOrder.aspx", { sortOrder: sortOrder, tableName: tableName, whereID: whereID, valueID: valueID }, function (data) {
                $('#div_result').html(data);
            });
        }
    
    </script>
    <link href="../css/admin/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="tablecontent">
        <table border="0" cellpadding="3" cellspacing="3" width="100%">
            <tr>
                <td align="center">
                    
                    
                    <uc1:Menu ID="Menu1" runat="server" />
                    
                    
                </td>
            </tr>
            <tr>
                <td align="center">
                    <table cellpadding="3" cellspacing="3" class="style1">
                        <tr>
                            <td colspan="2" align="center">
                                <asp:Label ID="lblHeading" runat="server"  Font-Size="XX-Large" 
                Font-Underline="True" ForeColor="Black"
                                    Text="Manage Brand's Division Category"></asp:Label>
                            </td>
                        </tr>
                        <tr><td>&nbsp;</td></tr>
                        <tr>
                            <td align="center" colspan="2">
                                <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="Label1" runat="server" Text="Division Name"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="cboDivision" runat="server" AutoPostBack="True" CssClass="form-control select-tab">
                                </asp:DropDownList>
                            </td>
                        </tr>
                         <tr><td style="line-height:5px;">&nbsp;</td></tr>
                        <tr runat="server" id="rowCat">
                            <td align="left">
                                <asp:Label ID="lblCategoryName" runat="server" Text="Category Name"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="cboCategory" runat="server" CssClass="form-control select-tab">
                                </asp:DropDownList>
                            </td>
                        </tr>
                          <tr><td style="line-height:5px;">&nbsp;</td></tr>
                         <tr>
                            <td align="left">
                                <asp:Label ID="lblsortorder" runat="server" Text="Sort Order"></asp:Label>
                            </td>
                            <td align="left" style="padding-left:10px;">
                                <asp:TextBox ID="txtSortOrder" runat="server" Width="64px" CssClass="form-control"></asp:TextBox>
                            </td>
                        </tr>
                          <tr><td style="line-height:5px;">&nbsp;</td></tr>
                        <tr>
                            <td align="center" colspan="2">
                                <asp:Button ID="btnSave" runat="server" Text="Save" />
                                    &nbsp;<asp:Button ID="cmdBack" runat="server" Text="Back" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
            <td align="center"><div id="div_result" style="color:Red"></div></td>
            </tr>
        <tr>
        <td align="center">
            <asp:DataGrid ID="dgBrandDivCats" runat="server" AutoGenerateColumns="False" Width="500px"   DataKeyField="id"
            AllowPaging="True" CellPadding="4" ForeColor="#333333" GridLines="None" CssClass="table">
                        <AlternatingItemStyle BackColor="White" />
                        <Columns>
                            <asp:BoundColumn DataField="divisiontitle" HeaderText="Division Title"></asp:BoundColumn>
                            <asp:BoundColumn DataField="catname" HeaderText="Category Name">
                            </asp:BoundColumn>
                            
                            <asp:TemplateColumn HeaderText="Sort Order">
                                <ItemTemplate>
                                    <asp:TextBox Width="45px" MaxLength="4" ID="txtSortOrder" runat="server" text='<%#DataBinder.Eval(Container.DataItem,"sortorder") %>' ></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:TemplateColumn>
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkEdit" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"id") %>' CommandName="Edit">Edit</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:TemplateColumn>
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkDelete" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"id") %>' CommandName="Delete">Delete</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                        </Columns>
                        <EditItemStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle Font-Bold="True" BackColor="#507CD1" ForeColor="White" />
                        <ItemStyle BackColor="#EFF3FB" />
                        <PagerStyle HorizontalAlign="Center" 
                            Mode="NumericPages" VerticalAlign="Middle" BackColor="#2461BF" 
                            ForeColor="White" />
                        <SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    </asp:DataGrid>
        </td>
        </tr>
        </table>
    </div>
    </form>
</body>
</html>

